Relational database conversion and purge

ABSTRACT

A computer implemented method, system and media are provided to convert relational database files hosted on a client server to operating database files. The operating database files are transferred using FTP protocol to a remote archival server. A relational database is created from the transferred operating database files on the remote archival server.

BACKGROUND

Relational databases contain large amounts of data and are costly anddifficult to back-up and purge. Relational databases are used in themedical and pharmacy fields to store orders and personal informationthat will need to be accessed and queried at later for reporting andtreatment of the person. Oftentimes, additional physical disc space mustbe added to a client server to maintain backup or historical files fromthe relational database. Adding physical disc space is costly and timeconsuming to maintain. Alternatively, client servers can transfer thefiles via a network to a backup or remote server in a cloud-computingenvironment via a network.

The historical files are transferred are transferred one line by oneline in relational database format line by line via a network to theremote server. Transferring historical relational database files via anetwork to a remote hosted server such as one located in a cloudcomputing network is a very time consuming process, often needing to bedone overnight. Furthermore, if the network is prone to interruptions,the process to transfer files to a remote hosted server has to startover from the beginning if it is interrupted causing an additionaldelay.

SUMMARY

Embodiments of the present invention provide methods and system forperforming a historical purge on a relational database on a clientserver and quickly and efficiently exporting the relational databaseinformation via a network to remote servers including archival databaseserver hosted in a cloud-computing environment.

The claimed invention relates to a system and method supportingcomputerized medical and pharmaceutical relational database systems.More specifically, the claimed invention relates to a system, method andcomputer readable media for to converting relational database fileshosted on a client server to operating database files. The operatingdatabase files are transferred using FTP protocol to a remote archivalserver. A relational database is created from the transferred operatingdatabase files on the remote archival server.

The claimed solution is necessarily rooted in computerized electronicmedical and pharmacy relational database technology in order to overcomea problem specifically arising in the realm of computer medical andpharmacy relational database technology. The claims address the problemof quickly and efficiently creating historical or backup files formedical and pharmaceutical relational database technology.

The claimed system and method of the present application represents anew paradigm in performing a historical purge of relational databasecontaining thousands, if not millions of files. Not only does theclaimed invention purge and transfer thousands of relational database ina timely and efficient manner, it does so such that same reportingtechniques used on both active relational database files and archivedfiles. This allows for reporting documentation to be the same on activerelational database files and archived relational database files.Previously, it was a time consuming and error prone method oftransferring the relational database records line by line to an archivalor cloud-based environment.

The method and system for automatically purging relational databasefiles into an archival database such as a cloud-based environmentreduces the overall time to transfer relational database records. Therelational database structure according to the new technology is morecost effective to maintain, as new physical servers do not need to beadded to the active relational database environment physically locatedat a pharmacy, medical center or financial institution.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments are described in detail below with reference to the attacheddrawing figures, wherein:

FIG. 1 is a block diagram of an exemplary computing environment suitableto implement embodiments of the present invention;

FIG. 2 is an exemplary system architecture suitable to implementembodiments of the present invention;

FIG. 3 is a flow diagram depicting a process for determine when discspace is full and a database is to be purged;

FIG. 4 is flow diagram depicting a process for creating and transferringoperational database files from a relational database;

FIG. 5 is a flow diagram depicts a process for importing operationaldatabase files on a remote and creating a relational database using thefiles; and

FIG. 6 depicts a graphical indicia alerting that a purge of therelational database is needed or has occurred.

DETAILED DESCRIPTION

The subject matter of the present invention is described withspecificity herein to meet statutory requirements. However, thedescription itself is not intended to limit the scope of this patent.Rather, the inventors have contemplated that the claimed subject mattermight also be embodied in other ways, to include different steps orcombinations of steps similar to the ones described in this document, inconjunction with other present or future technologies. Moreover,although the terms “step” and/or “block” may be used herein to connotedifferent elements of methods employed, the terms should not beinterpreted as implying any particular order among or between varioussteps herein disclosed unless and except when the order of individualsteps is explicitly described.

Embodiments of the present invention are directed to methods, systems,and computer-readable media for a system and method for creating anested relationship between a high level object and a child object in adocumentation template hierarchy for generating a dynamic medicalnarrative.

An exemplary computing environment suitable for use in implementingembodiments of the present invention is described below. FIG. 1 is anexemplary computing environment (e.g., medical-informationcomputing-system environment) with which embodiments of the presentinvention may be implemented. The computing environment is illustratedand designated generally as reference numeral 100. The computingenvironment 100 is merely an example of one suitable computingenvironment and is not intended to suggest any limitation as to thescope of use or functionality of the invention. Neither should thecomputing environment 100 be interpreted as having any dependency orrequirement relating to any single component or combination ofcomponents illustrated therein.

The present invention is a special computing system that can leveragewell-known computing system environments or configurations. Examples ofwell-known computing systems, environments, and/or configurations thatmight be suitable for use with the present invention include personalcomputers, server computers, hand-held or laptop devices, multiprocessorsystems, microprocessor-based systems, set top boxes, programmableconsumer electronics, network PCs, minicomputers, mainframe computers,distributed computing environments that include any of theabove-mentioned systems or devices, and the like.

The present invention might be described in the context ofcomputer-executable instructions, such as program modules, beingexecuted by a computer. Exemplary program modules comprise routines,programs, objects, components, and data structures that performparticular tasks or implement particular abstract data types. Thepresent invention might be practiced in distributed computingenvironments where tasks are performed by remote processing devices thatare linked through a communications network. In a distributed computingenvironment, program modules might be located in association with localand/or remote computer storage media (e.g., memory storage devices).

With continued reference to FIG. 1, the computing environment 100comprises a computing device in the form of a control server 102.Exemplary components of the control server 102 comprise a processingunit, internal system memory, and a suitable system bus for couplingvarious system components, including data store 104, with the controlserver 102. The system bus might be any of several types of busstructures, including a memory bus or memory controller, a peripheralbus, and a local bus, using any of a variety of bus architectures.Exemplary architectures comprise Industry Standard Architecture (ISA)bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus,Video Electronic Standards Association (VESA) local bus, and PeripheralComponent Interconnect (PCI) bus, also known as Mezzanine bus.

The control server 102 typically includes therein, or has access to, avariety of non-transitory computer-readable media. Computer-readablemedia can be any available media that might be accessed by controlserver 102, and includes volatile and nonvolatile media, as well as,removable and nonremovable media. By way of example, and not limitation,computer-readable media may comprise computer storage media andcommunication media. Computer storage media includes both volatile andnonvolatile, removable and non-removable media implemented in any methodor technology for storage of information such as computer-readableinstructions, data structures, program modules or other data. Computerstorage media includes, but is not limited to, RAM, ROM, EEPROM, flashmemory or other memory technology, CD-ROM, digital versatile disks (DVD)or other optical disk storage, magnetic cassettes, magnetic tape,magnetic disk storage or other magnetic storage devices, or any othermedium which can be used to store the desired information and which canbe accessed by control server 102. Communication media typicallyembodies computer-readable instructions, data structures, programmodules or other data in a modulated data signal such as a carrier waveor other transport mechanism and includes any information deliverymedia. The term “modulated data signal” means a signal that has one ormore of its characteristics set or changed in such a manner as to encodeinformation in the signal. By way of example, and not limitation,communication media includes wired media such as a wired network ordirect-wired connection, and wireless media such as acoustic, RF,infrared and other wireless media. Combinations of any of the aboveshould also be included within the scope of computer-readable media.

The control server 102 might operate in a computer network 106 usinglogical connections to one or more remote computers 108. Remotecomputers 108 might be located at a variety of locations in a medical orresearch environment, including clinical laboratories (e.g., moleculardiagnostic laboratories), hospitals and other inpatient settings,veterinary environments, ambulatory settings, medical billing andfinancial offices, hospital administration settings, home healthcareenvironments, and clinicians' offices. Clinicians may comprise atreating physician or physicians; specialists such as surgeons,radiologists, cardiologists, and oncologists; emergency medicaltechnicians; physicians' assistants; nurse practitioners; nurses;nurses' aides; pharmacists; dieticians; microbiologists; laboratoryexperts; laboratory technologists; genetic counselors; researchers;veterinarians; students; and the like. The remote computers 108 mightalso be physically located in nontraditional medical care environmentsso that the entire healthcare community might be capable of integrationon the network. The remote computers 108 might be personal computers,servers, routers, network PCs, peer devices, other common network nodes,or the like and might comprise some or all of the elements describedabove in relation to the control server 102. The devices can be personaldigital assistants or other like devices.

Computer networks 106 comprise local area networks (LANs) and/or widearea networks (WANs). Such networking environments are commonplace inoffices, enterprise-wide computer networks, intranets, and the Internet.When utilized in a WAN networking environment, the control server 102might comprise a modem or other means for establishing communicationsover the WAN, such as the Internet. In a networking environment, programmodules or portions thereof might be stored in association with thecontrol server 102, the data store 104, or any of the remote computers108. For example, various application programs may reside on the memoryassociated with any one or more of the remote computers 108. It will beappreciated by those of ordinary skill in the art that the networkconnections shown are exemplary and other means of establishing acommunications link between the computers (e.g., control server 102 andremote computers 108) might be utilized.

In operation, an organization might enter commands and information intothe control server 102 or convey the commands and information to thecontrol server 102 via one or more of the remote computers 108 throughinput devices, such as a keyboard, a microphone (e.g., voice inputs), atouch screen, a pointing device (commonly referred to as a mouse), atrackball, or a touch pad. Other input devices comprise satellitedishes, scanners, or the like. Commands and information might also besent directly from a remote healthcare device to the control server 102.In addition to a monitor, the control server 102 and/or remote computers108 might comprise other peripheral output devices, such as speakers anda printer.

Although many other internal components of the control server 102 andthe remote computers 108 are not shown, such components and theirinterconnection are well known. Accordingly, additional detailsconcerning the internal construction of the control server 102 and theremote computers 108 are not further disclosed herein.

Embodiments of the present invention may be implemented in acloud-computing environment. The cloud-computing network may comprisesingle or multiple servers running single or multiple virtual machines.A client server with active relational database files is typicallylocated in a location such as a pharmacy, hospital system electronicmedical record, or financial services remote from an archival server orservers in a cloud-computing environment. Millions of records aretransferred from the client server to the archival server orcloud-computing environment in a timely, efficient and secure mannerusing embodiments of the present invention.

In an embodiment 200 exhibited by FIG. 2, a computer environment isdepicted for purging and transferring historical relational databasefiles. Client server 205 may be a variety of servers including OpenVMSand Linux servers. Client server 205 maintains active relationaldatabase files and is typically located in a location such as apharmacy, hospital system electronic medical record, or financialservices location. Client server 205 is remote from an archival server210 such as a Microsoft Windows server in a cloud-computing environment.Client server 205 hosts a relational database system such as a Cachedatabase 220 storing electronic medical record or electronicpharmaceutical records at a client location such as a pharmacy, hospitalsystem electronic medical record, or financial services location. TheCache database 220 may include active relational database files 275,historical relational database files 280 and SQL tables 230. Network215, such as the internet or other public or private network, serves asa communications link from client server 205 to archival server 210.Tasks performed by the processor utilize a variety of computertechnology. In one embodiment, client server 205 is three tiers: a webserver, application server and database server. Each tier is comprisedof a number of system layers as described below.

Pharmacy historical purge (PHPRMAIN) 235 executes routines to access therelational database files, such as electronic medical, pharmacy andfinancial files. The client can define in Cache database 220 activerelational database files and historical relational database files.Pharmacy historical purge 235 purges files designated as historicalfiles from the Cache database 220. The active/historical designationallows the cache database 220 to identify active files continuouslycached for performance purposes and historical files that saved are forreporting and non-immediate access. Additionally, clients do not want topurge files actively used clients for treatment of persons so thehistorical designation prevents purging of active files.

The Cache database 220 can create structured query language (SQL) tables230 from both active 220 and historical 280 files for use with opendatabase connectivity (ODBC) 260. Reporting may include Crystal Reports265 and Microsoft Access 270 can utilize the SQL tables for reporting.

Electronic files accessed include pharmacy historical orders, pharmacyhistorical charges, historical medication administration charting,historical clinical interventions, historical pharmacy orderenhancement, pharmacy clinical audit, pharmacy charges, medicationadministration charges and errors, long term care charges and claims,pharmacy historical indexes, work load statistics, user data access,centralized Masterfile tools and auditing files in Cache DB or otherrelational database. Pharmacy Historical Purge 220 executes routines tocreate operating system files 225 from the relational database files.Exemplary operating system files 225 created from the relationaldatabase files include file.xml for data, file.xsd for table definitionsand file.txt for file properties. The operating system files 225 aretransferred 215 using file transfer protocol 215 to archival server 210.Creating operating system files 225 and transferring files 215 usingfile transfer protocol can take minutes and saves hours, if not days,from prior technology that transferred relational database files line byline and the transfer prone to network interruption.

The operating system files 240 are transferred to archival server 210and are imported into by import utility routine 245. Import utilityroutine 245 on archival server 210 imports the operating system files240 and creates a relational database containing archival files in aCache database. The structure created on the archival server is similarto that on client server 205 such that SQL tables 250 can be createdfrom archived files so that the data can be utilized by ODBC 260 to bequeried and run reports by Microsoft Access 270 and Crystal Reports 265.

FIG. 3 depicts a method for determining when to purge files from arelational database hosted on a client server, such as a medical,pharmaceutical or financial relational database. At step 305, theroutine determines the amount of existing disk space available at aclient server that is remote to one or more archival servers in acloud-computing environment. At step 310, the routine determines whetherthe usage of the relational database exceeds the maximum allowed amountof usage for the database. The purge is performed based client definedamount of free disk space in the Cache Database. If at step 310, it isdetermined that the amount used exceeds the maximum threshold, a warningis provided that an auto purge of the relational database is going tooccur as shown in graphical representation 605 of FIG. 6. The warningallows the client the opportunity to delay the purge or allow it toexecute as defined. At step 325, an auto purge is performed on therelational database of the client server. After the purge is performed,notification 610 is provided to the client that a purge has beenperformed as shown in FIG. 6.

FIG. 4 depicts a method 400 for purging, converting and transferringrelational database files from client server to be archived at a remotearchival server. At step 410, the historical relational database filesto be purged from the client are determined. These are identified by theclient 405 to be purged to create more disk space on the client server.These files are typically relational database files that are not beingused for current treatment or orders for a person in a pharmaceutical ormedical relational database. At step 415, a routine runs on thehistorical relational database files to create operational databasefiles at step 420. Relational database files are converted tooperational database files such as xml, xmd and txt as described above.

Once the files to be purged are converted to operational database filesthey are transferred at step 425 via network using FTP to an archivalserver in a cloud computing network. Typically, once the transferprocess is completed, the files will be purged or erased from the clientserver freeing up disk space for active relational database files.However, the present method and system provides a conversion tooperational database files may be done as a test without deleting thefiles from the client server.

FIG. 5 depicts a method 500 for importing the purged operating systemfiles (converted from relational database files) as described in FIG. 4.At step 505, a user logs into an archival server such as a server in acloud-computing environment. For example, a user may logon to aMicrosoft Windows machine on a server in a cloud-computing environment.While a Microsoft Windows machine is described, it will be appreciatedthat any comparable virtual operating system machine may be used.

At step 510, a cache routine is installed on the archival server. In oneembodiment, UDAXML cache routine is copied and installed to the USERNameSpace on a Windows machine. The UDAXML cache routine runs the runthe processing for importing the xml utility including importing theconverted operating system files and converting the operating systemfiles the specified relational database format.

At step 515, the converted operating system files are received via FTPfrom the first server. For example, the FTP XML/XSD/TXT files fromPharmacy server are received at c:\Temp\udaxml. A udaxml directory iscreated if not already defined at this step.

At step 520, Cache Studio is started and the archival server isconnected to Windows for Cache Instance. It will be appreciated thatwhile Cache Studio and cache routines are used for purposes ofdescribing an embodiment, that any program performing the same functionscould be used on the archival server. In this embodiment, Cache Studiois used on the client server hosting active relational database filesand so Cache Studio is started on the archival server.

At step 525, a terminal emulator is started and import XML routine(IMPXML) is executed at step 530. The execution of IMPXML will begin theimport of the operational database files (xml/xsd/txt) at step 535previously received via FTP. It will be appreciated that XML data isloaded for the main table and global index created via input triggerstable. Relational database files are created from the importedoperational system files.

At step 540, SQL files are created from the imported files such that thedata can be utilized by open database connectivity (ODBC). An ODBC datasource name (DSN) is created for the USER NameSpace on the Windowsmachine. MS Access is opened such that queries and reports can be run onthe structure query language files utilizing open database connectivity.Other queries and reports can be run using the open databaseconnectivity structure of the data imported by the archival server.

Below is an example of exporting and importing the transferredrelational database files. As can be seen from this example, the newprocess for archiving relational database files significantly reducesthe amount of time needed to transfer archived files into a cloudenvironment, seconds or minutes using the new process vs. hours and daysutilizing prior methods.

-   -   (1) Import of industry standard XML/XSD files, with Optional        .TXT file    -   (2) Exemplary files: Clinicals, Financials, and any third party        vendor    -   (3) Data Types are translated from Source Table to Cache Data        Types    -   (4) Cache Package Name is configurable: AppDBType,        Default=PHMMAKArchive    -   (5) Cache Global Prefix is configurable: Default=ARC, Example:        {circumflex over ( )}ARCPHHSTORD    -   (6) Table Version Check is configurable: Default=1 (Do Version        Check)    -   (7) Override Duplicate Row Data is configurable: Default=1        (Overwrite Duplicate Row Data)    -   (8) Only one routine to install on Windows Cache. No dependency        on Sub-systems or RX App Code.    -   (9) USER>D IMPXML{circumflex over        ( )}UDAXML(“C:\Temp\udaxml”,,,,,1)    -   (10) Importing . . .        C:\Temp\udaxml\PHHSTDEM_NRPRD_20160712_20160930.XSD    -   (11) Compilation started on May 17, 2017 15:11:37 with        qualifiers ‘dk’, compiling 2 classes, using 8 worker jobs    -   (12) Compiling class PHMMAKTemp.PATNUM    -   (13) Compiling class PHMMAKTemp.PHHSTDEM    -   (14) Compiling table PHMMAKTemp.PHHSTDEM    -   (15) Compiling routine PHMMAKTemp.PHHSTDEM.    -   (16) Compilation finished successfully in 2.552 s.    -   (17) Exporting . . . PHMMAKTemp.PHHSTDEM to        C:\Windows\Temp\PHHSTDEM.XML    -   (18) Exporting to XML started on May 17, 2017 15:11:40    -   (19) Exporting class: PHMMAKTemp.PHHSTDEM    -   (20) Export finished successfully.    -   (21) Retrieving Property Info from . . .        C:\Windows\Temp\PHHSTDEM.XML    -   (22) LoadingC:\Windows\Temp\PHHSTDEM.XMLinto{circumflex over        ( )}CacheTempUserUDATMP(92    -   (23) Creating Dictionary Definition . . . ARCPHHSTDEM    -   (24) Creating UDA Table . . . PHMMAKArchive.PHHST_DEM    -   (25) Loading file C:\Windows\Temp\PHHST_DEM.XML as xml    -   (26) Imported class: PHMMAKArchive.PHHSTDEM    -   (27) Compiling class PHMMAKArchive.PHHSTDEM    -   (28) Compiling table PHMMAKArchive.PHHST_DEM    -   (29) Compiling routine PHMMAKArchive.PHHSTDEM.1    -   (30) Load finished successfully.    -   (31) XML file ‘C:†Windows\Temp\PHHST_DEM.XML’ created        successfully and imported.    -   (32) Deleting class PHMMAKTemp.PHHSTDEM    -   (33) Importing . . . C:\Temp\udaxml\PHHSTORDERSDOCIDX_NRPRD.XSD    -   (34) Compilation started on May 17, 2017 15:11:41 with        qualifiers ‘dk’, compiling 2 classes, using 8 worker jobs    -   (35) Compiling class PHMMAKTemp.PATNUM    -   (36) Compiling class PHMMAKTemp.PHHSTORDERSDOCIDX    -   (37) Compiling table PHMMAKTemp.PHHSTORDERSDOCIDX    -   (38) Compiling routine PHMMAKTemp.PHHSTORDERSDOCIDX.1    -   (39) Compilation finished successfully in 0.455 s.    -   (40) Exporting . . . PHMMAKTemp.PHHSTORDERSDOCIDX to        C:\Windows\Temp\PHHSTORDERSDOCIDX.XML    -   (41) Exporting to XML started on May 17, 2017 15:11:42    -   (42) Exporting class: PHMMAKTemp.PHHSTORDERSDOCIDX    -   (43) Export finished successfully.

The present invention has been described in relation to particularembodiments, which are intended in all respects to be illustrativerather than restrictive. Further, the present invention is not limitedto these embodiments, but variations and modifications may be madewithout departing from the scope of the present invention.

The invention claimed is:
 1. One or more computer storage media havingcomputer-usable instructions that, when used by one or more computingdevices, cause the one or more computing devices to perform a method forexporting and purging files from a relational database, the methodcomprising: identifying the relational database files to be purged froma first server; converting said relational database files into operatingsystem files; exporting said converted files in a batch via a networkusing file transfer protocol (ftp) to a remote server in a cloudcomputing network; and purging said relational database files from thefirst server.
 2. The media of claim 1, wherein the relational databaseis a cache database.
 3. The media of claim 1, wherein the relationaldatabase files are electronic pharmacy records.
 4. The media of claim 1,wherein the relational database files are electronic medical records. 5.The media of claim 1, wherein operating system files comprise on or moreof extensible markup files (xml), extended metadata (xcd) files andunformatted text (txt) files.
 6. The media of claim 1, wherein operatingsystem files comprises extensible markup files (xml), extended metadata(xcd) files and unformatted text (txt) files.
 7. One or more computerstorage media having computer-usable instructions that, when used by oneor more computing devices, cause the one or more computing devices toperform a method for creating a relational database in a cloud computingnetwork from importing operating system files, the method comprising:installing a routine on a remote hosted server to import operatingsystem files from a first server via a network and create a relationaldatabase with said operating system files; beginning a terminal emulatorfor the relational database; executing said routine to import saidoperating system files; and executing said routine to create therelational database on the remote hosted server using said operatingsystem files.
 8. The media of claim 7, wherein the relational databaseis a cache database.
 9. The media of claim 7, wherein the relationaldatabase files are electronic pharmacy records.
 10. The media of claim7, wherein the relational database files are electronic medical records.11. The media of claim 7, wherein operating system files comprise on ormore of extensible markup files (xml), extended metadata (xcd) files andunformatted text (txt) files.
 12. The media of claim 7, whereinoperating system files comprises extensible markup files (xml), extendedmetadata (xcd) files and unformatted text (txt) files.
 13. One or morecomputer storage media having computer-usable instructions that, whenused by one or more computing devices, cause the one or more computingdevices to perform a method for purging files from a relational databaseand creating a relational database from said purged files on a remoteserver, the method comprising: identifying the relational database filesto be purged from a first server; converting said relational databasefiles into operating system files; exporting said converted files in abatch via a network using file transfer protocol (ftp) to a remoteserver in a cloud computing network; purging said relational databasefiles from the first server; installing a routine on the remote hostedserver to import operating system files from a first server via anetwork and create a relational database with said operating systemfiles; beginning a terminal emulator for the relational database;executing said routine to import said operating system files; andexecuting said routine to create the relational database on the remotehosted server using said operating system files.
 14. The media of claim13, wherein the relational database is a cache database.
 15. The mediaof claim 13, wherein the relational database files are electronicpharmacy records.
 16. The media of claim 13, wherein the relationaldatabase files are electronic medical records.
 17. The media of claim13, wherein operating system files comprise on or more of extensiblemarkup files (xml), extended metadata (xcd) files and unformatted text(txt) files.
 18. The media of claim 13, wherein operating system filescomprises extensible markup files (xml), extended metadata (xcd) filesand unformatted text (txt) files.
 19. The media of claim 18, furthercomprising: creating Structured Query Language files from the relationaldatabase on the remote hosted server using said operating system files;and creating structured query language files from files not purged fromthe first server.
 20. The media of claim 19, further comprising: runningreports on the structure query language files from both the remotehosted server and the first server.